package easyway.trainapp.webframework.web;

import java.text.SimpleDateFormat;
import java.util.Date;

import easyway.trainapp.webframework.util.BasicBackingBean;

public class HeaderBB extends BasicBackingBean{
	
	private String loginTime;//登录时间   格式2009-04-12 08:10:05
	private String username;//用户名	
	private String rankname;//角色名
	//前台绑定数据结束
	
	/*private static CallCaseRemote ccr;
	
	static {
		try {
			ccr=(CallCaseRemote)EJBLookup.getEJBRemote(CallCaseBean.class);
		} catch (NamingException e) {
			e.printStackTrace();
		}
	}*/
	public HeaderBB(){
		queryUsersHead();
		
	}
	@SuppressWarnings("unchecked")
	//查询头参数
	public String queryUsersHead() {// 查询系统用户头 显示的参数
		//获取用户名
		setUsername((String)getSessionAttribute("username"));
		//获取登陆时间
		SimpleDateFormat s=new SimpleDateFormat("yyyy-MM-dd  HH:mm:ss");   
		loginTime=s.format(new Date());
		return "";
	}

	public String getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getRankname() {
		return rankname;
	}
	public void setRankname(String rankname) {
		this.rankname = rankname;
	}


	

	



}
